<%--
  Created by IntelliJ IDEA.
  User: SYG
  Date: 2018/6/7
  Time: 10:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>获取复选框的值</title>
</head>
<body>
<form action="${pageContext.request.contextPath}/checkbox" method="get">
    <input type="checkbox" name="checkbox" value="zhangsan"/>姓名
    <input type="checkbox" name="checkbox" value="lisi"/>lisi
    <input type="checkbox" name="checkbox" value="wangwu"/>wangwu
    <input type="submit" value="提交" name="submit">
</form>
</body>
</html>
